import React from 'react';
import './index.less';

export default class InvoiceButtonGroup extends React.PureComponent {

  handleRedirect = () => {
    __self.history.push(this.props.backToLink)
  }

  render() {
    return (
      <div className="button-container">
        <span className="button" onClick={() => { this.props.onSubmit() }}>保存</span>

        <span className="button cancel-button" onClick={this.handleRedirect}>取消</span>
      </div>
    )
  }
}